﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace BADDGUI.Controls
{
    public partial class BLCModToolStrip : ToolStripButton 
    {
        #region Constructor & Load
        
        public BLCModToolStrip(int ControlId, string ControlName, string ControlText)
        {
            this.ControlName = ControlName;
            this.ControlText = ControlText;
            this.controlId = ControlId;

            InitializeEvent();
            InitializeUI();
        } 

        #endregion

        #region Property

        string controlName = "";
        public string ControlName
        {
            get { return controlName; }
            set { controlName = value; }
        }

        string controlText = "";
        public string ControlText
        {
            get { return controlText; }
            set { controlText = value; }
        }

        private int controlId;
        public int ControlId
        {
            set { controlId = value; }
            get { return controlId; }
        } 

        #endregion

        #region Method

        private void InitializeEvent()
        {
            
        }

        public void InitializeUI()
        {
            this.Name = this.ControlName;
            this.Text = this.ControlText;

            this.Font = new System.Drawing.Font("Zawgyi-One", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));

            this.Image = global::BADDGUI.Properties.Resources.TaskHL;
            this.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.ImageTransparentColor = System.Drawing.Color.Black;
            this.ImageScaling = ToolStripItemImageScaling.None;
            this.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;

            this.Padding = new System.Windows.Forms.Padding(0, 3, 0, 3);
        } 

        #endregion
    }
}
